package com.example.oneAgent;

public class ObjectUtils {
	
	public static boolean isNullObject(Object paramObject) {
		if (paramObject == null) {
			return true;
		} else {
			if (paramObject.toString().trim().length() == 0) {
				return true;
			}
			return false;
		}
	}
	
	public static boolean isNullString(Object paramObject) {
		if (paramObject == null) {
			return true;
		} else {
			String lvParamString = paramObject.toString().trim();
			if (lvParamString.length() == 0 || lvParamString.equalsIgnoreCase("null")) {
				return true;
			}
		}
		return false;
	}

	/**
	 * IWS
	 * @param pStr
	 * @return
	 */
	public static boolean isNullStr(String pStr)
	{
		if (pStr == null)
			return true;
		else
		{
			String pTrimStr = pStr.trim();
			return pTrimStr.length() == 0 || pTrimStr.equalsIgnoreCase("null");
		}
	}

}
